package com.teemo.dp.abstractfactory.factory;

import com.teemo.dp.abstractfactory.computer.Computer;
import com.teemo.dp.abstractfactory.computer.LaptopComputer;
import com.teemo.dp.abstractfactory.mouse.LaptopMouse;
import com.teemo.dp.abstractfactory.mouse.Mouse;

/**
 * @author Teemo
 */
public class LaptomComputerFactory implements ComputerFactory {
    @Override
    public Computer createComputer() {
        LaptopComputer laptopComputer = new LaptopComputer();
        laptopComputer.setCpu("i5");
        laptopComputer.setMemory("8GB");
        laptopComputer.setHardDisk("256GB");
        return laptopComputer;
    }

    @Override
    public Mouse createMouse() {
        return new LaptopMouse();
    }
}
